import { createApp } from "vue";
import HelloWorld from './HelloWorld.vue'
export function msg(options) {
    const instance = createApp(HelloWorld, options);
    showDom(instance)
}
//展示
function showDom(app) { 
    const vm = document.createDocumentFragment()
    app.mount(vm)
    document.body.appendChild(vm)
    removeDom(app)
}
//关闭 并销毁
function removeDom(app) { 
    setTimeout(() => { 
        app.unmount()
    },3000)
}